registerTests([
function SingleOrDefault_Test_0()
{
	var myArray = [1, 2, 3];
	var result = myArray.SingleOrDefault();
	
	Assert.isNotDefined(result);
},
function SingleOrDefault_Test_1()
{
	var myArray = [1];

	Assert.areEqual(myArray.SingleOrDefault(), 1);
},
function SingleOrDefault_Test_Condition_0()
{
	var myArray = [1, 2, 3];
	var result = myArray.SingleOrDefault("x=> x == 2");
	
	Assert.areEqual(result, 2);
},
function SingleOrDefault_Test_Condition_1()
{
	var myArray = [];
	var result = 9;

	Assert.doesntThrowException(function() { result = myArray.SingleOrDefault("x => x == 2");});
	Assert.isNotDefined(result);
}
]);